package com.geyue.core.model;

import com.geyue.common.base.model.Model;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 首页展示信息
 * Created by Lyon on 2017/4/20.
 */
@Data
@Table(name = "user")
public class User extends Model {

    @NotBlank
    private String name;

//    @NotBlank
//    @Length(max = 16,min = 6)
    private String password;

//    @NotBlank
//    @Length(max = 6,min = 4)
    @Column(name = "msg_code")
    private String msgCode;

    @NotBlank
    @Length(max = 18)
    @Column(name = "idcard")
    private String idCard;

    @NotBlank
    @Length(max = 11)
    private String mobile;

    @NotBlank
    private String province;

    @NotBlank
    private String city;

    private String area;

    @NotBlank
    @Column(name = "service_org")
    private String serviceOrg;

    @NotBlank
    private String dept;

    @NotBlank
    @Length(max = 11)
    @Column(name = "leader_mobile")
    private String leaderMobile;

    private String email;

    private String bankcard;

    private Integer integral;

}
